" 测试list和dict字面量
" 基本list字面量
let empty_list = []
let numbers = [1, 2, 3, 4, 5]
let strings = ["hello", "world", "viml"]
let mixed = [1, "two", 3.5, true]

" 基本dict字面量
let empty_dict = {}
let person = {"name": "Alice", "age": 30, "active": true}
let scores = {"math": 95, "english": 88, "science": 92}

" 访问list元素
echo numbers[0]
echo numbers[2]
echo len(numbers)

" 访问dict元素
echo person["name"]
echo person["age"]
echo len(person)

" 嵌套结构
let nested_list = [[1, 2], [3, 4], [5, 6]]
let nested_dict = {"user": {"name": "Bob", "id": 123}, "config": {"theme": "dark"}}

" 测试嵌套访问
echo nested_list[1][0]
echo nested_dict["user"]["name"]

" 最终输出
let result = 100
echo result